$OpenBSD: patch-aux_broctl_bin_run-bro,v 1.2 2016/11/19 12:02:37 ajacoutot Exp $
--- aux/broctl/bin/run-bro.orig	Wed Nov 16 23:53:51 2016
+++ aux/broctl/bin/run-bro	Thu Nov 17 07:46:51 2016
@@ -54,11 +54,12 @@ ulimit -d $LIMIT
 # Note: on OpenBSD, attempting to adjust virtual memory size always fails.
 if [ "${os}" != "OpenBSD" ]; then
     ulimit -v $LIMIT
+    ulimit_v="-v"
 fi
 ulimit -c unlimited
 
 # show current limits (visible in crash reports and "broctl diag")
-ulimit -m -d -v -c
+ulimit -m -d ${ulimit_v} -c
 
 echo "PATH=${PATH}" >.env_vars
 echo "BROPATH=${BROPATH}" >>.env_vars
